import Layout from "@/layout";
import emptyLayout from "@/layout/emptyRouter.vue";


export default{
    path: "/distribution",
    meta: {
        title: "分销管理",
        roles: ["distribution"],
        icon: "el-icon-s-grid"
    },
    component: Layout,

    name: "Exam",
    children: [
        {
            path: "users",
            name: "users",
            meta: {
                title: "分销人员",
                roles: ["distribution:users"],
                icon: "el-icon-s-grid"

            },
            component: () => import("@/views/models/distribution/users.vue"),
        },
        {
            path: "policy",
            name: "policy",
            meta: {
                title: "佣金制度",
                roles: ["distribution:users"],
                icon: "el-icon-s-grid"

            },
            component: () => import("@/views/models/distribution/policy.vue"),
        },
        {
            path: "withdrawalRecords",
            name: "withdrawalRecords",
            meta: {
                title: "提现记录",
                roles: ["distribution:users"],
                icon: "el-icon-s-grid"

            },
            component: () => import("@/views/models/distribution/withdrawalRecords.vue"),
        },
        {
            path: "orderList",
            name: "orderList",
            meta: {
                title: "订单记录",
                roles: ["distribution:users"],
                icon: "el-icon-s-grid"

            },
            component: () => import("@/views/models/distribution/orderList.vue"),
        },
        {
            path: "commissionSplitRecords",
            name: "commissionSplitRecords",
            meta: {
                title: "佣金分成记录",
                roles: ["distribution:users"],
                icon: "el-icon-s-grid"

            },
            // 记录的是已完成订单对应的分成记录
            component: () => import("@/views/models/distribution/commissionSplitRecords.vue"),
        },
        // {
        //     path: "distributionConfig",
        //     name: "distributionConfig",
        //     meta: {
        //         title: "分销配置",
        //         roles: ["distribution:users"],
        //         icon: "el-icon-s-grid"
        //
        //     },
        //     component: () => import("@/views/models/distribution/distributionConfig.vue"),
        // },
        {
            path: "distributionDetail",
            name: "distributionDetail",
            meta: {
                title: "佣金详情",
                icon: "el-icon-s-grid"

            },
            hidden:true,
            component: () => import("@/views/models/distribution/distributionDetail.vue"),
        },
        {
            path: "weixin",
            name: "weixin",
            meta: {
                title: "佣金提现",
                icon: "el-icon-s-grid"

            },
            hidden:true,
            component: () => import("@/views/models/distribution/weixin.vue"),
        },
    ]
}
